<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			function fun() {
				
				for(i = 0; i < 4; i++) {
					for(space = 1; space < 4 - i; space++)
//						document.write("&nbsp;&nbsp;");
						document.write("<span style='white-space:pre;'>"+"  "+"</span>");
					for(star = 0; star < (i * 2 + 1); star++)
						document.write("*");
					
					document.write("<br>");
				}
			
				for(i = 0; i < 3; i++) {
					for(space = 0; space < i + 1; space++)
						document.write("&nbsp;&nbsp");
					for(star = 0; star < (3 - i) * 2 - 1; star++)
						document.write("*");
					document.write("<br>");
				}
			}
			fun();
		</script>
	</body>
</html>
